package com.hand.liut.fallback;

import com.hand.liut.entity.CommonResult;
import com.hand.liut.entity.Payment;
import org.springframework.stereotype.Component;

@Component
public class FeignPaymentServiceFallBack implements com.hand.liut.service.FeignPaymentService {
    @Override
    public CommonResult<Payment> findById(Long id) {
        CommonResult<Payment> paymentCommonResult = new CommonResult<>();
        paymentCommonResult.setCode(999999);
        paymentCommonResult.setMessage("调用失败了。。。。。。");
        paymentCommonResult.setData(null);
        return paymentCommonResult;
    }
}
